import request from '@/utils/request'

export function getLaboratoryList(data) {
  return request({
    url: '/laboratory/find-all-laboratory',
    method: 'post',
    data
  })
}
export function deleteLaboratory(data) {
  return request({
    url: '/laboratory/delete-laboratory',
    method: 'post',
    data
  })
}

export function addLaboratory(data) {
  return request({
    url: '/laboratory/add-laboratory',
    method: 'post',
    data
  })
}

export function updateLaboratory(data) {
  return request({
    url: '/laboratory/update-laboratory',
    method: 'post',
    data
  })
}

export function setLaboratoryPermission(data) {
  return request({
    url: '/laboratory/set-laboratory-permission',
    method: 'post',
    data
  })
}
